home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
cross
/
GBDK-2.0.lha
/
GBDK
/
lib
/
reverse.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-10-01
|
200b
|
19 lines
#include <stdlib.h>
char *reverse(char *s)
{
UBYTE i, j;
char c;
i = 0;
j = strlen(s) - 1;
while(i < j) {
c = s[i];
s[i] = s[j];
s[j] = c;
i++;
j--;
}
return(s);
}